import request from "@/utils/request";

/* 领域分类保存*/
export function saveDoaminRequest(data) {
  return request({
    url: "/management-admin/resourceArea/save",
    method: "post",
    data,
  });
}

//获取列表
export function getDomainListRequest(data) {
  return request({
    url: "/management-admin/resourceArea/queryByPage",
    method: "post",
    data,
  });
}

//删除
export function deleteDomainRequest(id) {
  return request({
    url: "/management-admin/resourceArea/delete?id=" + id,
    method: "get",
    // data,
  });
}

//获取排序规则
export function getSortRuleRequest(data) {
  return request({
    url: "/management-admin/resourceSortRate/queryByPage",
    method: "post",
    data,
  });
}

//设置排序规则
export function setSortRuleRequest(data) {
  return request({
    url: "/management-admin/resourceSortRate/save",
    method: "post",
    data,
  });
}
  